#!/bin/bash

if [ "$1" = "cache" ]; then
 grep -e size /proc/cpuinfo > cache.txt
else 
grep -e MHz /proc/cpuinfo > speed.txt
fi

